﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UML
{
    public class NewsManager : INewsManager
    {

        public void Add()
        {
            using (var content = new ModelContainer())
            {
                content.News.Add(new News());
                content.SaveChanges();
            }
        }

        public void Delete()
        {
            using (var content = new ModelContainer())
            {
                content.News.Remove(new News());
                content.SaveChanges();
            }
        }

        public void Update()
        {
            using (var content = new ModelContainer())
            {
               
            }
        }

        public void SelectById()
        {
            throw new NotImplementedException();
        }

        public void SelectByType()
        {
            throw new NotImplementedException();
        }
    }
}
